package com.jxc.model.po;

/***********************************************************************
 * Module:  Orderlist.java
 * Author:  Tino
 * Purpose: Defines the Class Orderlist
 ***********************************************************************/

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 进货单
 * 
 * @pdOid cab6eed0-6bfd-4004-ad2c-6a5d5580622f
 */
@Entity
@Table(name = "RKGL_ORDERLIST")
public class Orderlist extends IdEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7612486536066901626L;
	/**
	 * 日期
	 * 
	 * @pdOid 7e75c7ee-bc75-4039-b169-d020d0cdac6e
	 */
	private Date date;
	/**
	 * 单号
	 * 
	 * @pdOid 88546101-c2be-4d48-902c-33a4b16d30da
	 */
	private String serial;
	/**
	 * 营业员
	 * 
	 * @pdOid 945c865a-8d57-425a-9a52-1da01ec5cb48
	 */
	private User user;
	/**
	 * 仓库
	 * 
	 * @pdOid ee889ff0-ae27-48c4-bb7e-02bfcfaebb9b
	 */
	private Repertory repertory;
	/**
	 * 进货总额
	 * 
	 * @pdOid 25cdb1ae-ff86-4bb2-8ae1-e8775ed5d491
	 */
	private Double total;
	/**
	 * 备注
	 * 
	 * @pdOid 868e581f-e2c2-4d94-8a3e-c58718b29935
	 */
	private String remark;
	/**
	 * 是否删除
	 */
	private Boolean isDeleted;

	@Column(name = "DATE")
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	@Column(name = "SERIAL")
	public String getSerial() {
		return serial;
	}

	public void setSerial(String serial) {
		this.serial = serial;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "USER_ID")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "REPERTORY_ID")
	public Repertory getRepertory() {
		return repertory;
	}

	public void setRepertory(Repertory repertory) {
		this.repertory = repertory;
	}

	@Column(name = "TOTAL", length = 10, precision = 2)
	public Double getTotal() {
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Column(name = "IS_DELETED")
	public Boolean getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}

}